#include "userms.h"
#include <QApplication>

#include "connectmysql.h"
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    //连接数据库
    ConnectMySQL sql;
    if(sql.createConnection() == true)
    {
        qDebug() << "Connection Success!";
    }

    UserMS w;
    w.show();

    int res = a.exec();
    //断开数据库
    sql.closeConnection();

    return res;
}
